package com.shujia.java.day18.demo10;

/**
* @Description: Demo  修改Join
* @Author: 王火火
* @Date: 2019/8/20 15:30
 *
 * join问题
 * wait问题
 *
*/
public class Demo {
    public static void main(String[] args) throws Exception {

        MyThreadDemo myThreadDemo = new MyThreadDemo();
        myThreadDemo.setName("张三");
        MyThreadDemo myThreadDemo1 = new MyThreadDemo();
        myThreadDemo1.setName("李四");
        myThreadDemo.start();
        myThreadDemo1.start();

    }
}
